#ifndef VPPACKET_H
#define VPPACKET_H

#include <mutex>
extern "C"
{
#include <libavcodec/avcodec.h>
}
using namespace std;

class VpPacket
{
private:
    int       m_serial;
public:
    AVPacket* m_packet;
    mutex     m_mutex;
public:
              VpPacket  ();
             ~VpPacket  ();
              VpPacket  (const VpPacket& temp);
    VpPacket& operator= (const VpPacket& temp);
    void      setSerial (int newSerial);
    int       serial    () const;
};

#endif // VPPACKET_H
